.thaw-combobox {
    position: relative;
    display: inline-grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 1fr auto;
    column-gap: var(--spacingHorizontalXXS);
    min-width: 250px;
    height: 32px;
    padding-right: var(--spacingHorizontalMNudge);
    background-color: var(--colorNeutralBackground1);
    border-radius: var(--borderRadiusMedium);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-bottom-color: var(--colorNeutralStrokeAccessible);
    box-sizing: border-box;
}

.thaw-combobox--small {
    height: 24px;
    padding-right: var(--spacingHorizontalSNudge);
}

.thaw-combobox--large {
    column-gap: var(--spacingHorizontalSNudge);
    height: 40px;
    padding-right: var(--spacingHorizontalM);
}

.thaw-combobox:hover {
    border-color: var(--colorNeutralStroke1Hover);
    border-bottom-color: var(--colorNeutralStrokeAccessible);
}

.thaw-combobox:active {
    border-color: var(--colorNeutralStroke1Pressed);
    border-bottom-color: var(--colorNeutralStrokeAccessible);
}

.thaw-combobox:focus-within {
    outline-color: transparent;
    outline-style: solid;
    outline-width: 2px;
}

.thaw-combobox::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    left: -1px;

    height: max(2px, var(--borderRadiusMedium));
    border-bottom-left-radius: var(--borderRadiusMedium);
    border-bottom-right-radius: var(--borderRadiusMedium);
    border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
    transition-delay: var(--curveAccelerateMid);
    transition-duration: var(--durationUltraFast);
    transition-property: transform;
    transform: scaleX(0);
    clip-path: inset(calc(100% - 2px) 0px 0px);
    box-sizing: border-box;
}

.thaw-combobox:focus-within::after {
    transition-delay: var(--curveDecelerateMid);
    transition-duration: var(--durationNormal);
    transition-property: transform;
    transform: scaleX(1);
}

.thaw-combobox:focus-within:active::after {
    border-bottom-color: var(--colorCompoundBrandStrokePressed);
}

.thaw-combobox__input {
    align-self: stretch;
    background-color: var(--colorTransparentBackground);
    line-height: var(--lineHeightBase300);
    font-weight: var(--fontWeightRegular);
    font-size: var(--fontSizeBase300);
    font-family: var(--fontFamilyBase);
    color: var(--colorNeutralForeground1);
    padding: 0 0 0
        calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));
    border: none;
}

.thaw-combobox--small .thaw-combobox__input {
    line-height: var(--lineHeightBase200);
    font-size: var(--fontSizeBase200);
    padding: 0 0 0
        calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
}

.thaw-combobox--large .thaw-combobox__input {
    line-height: var(--lineHeightBase400);
    font-size: var(--fontSizeBase400);
    padding: 0 0 0
        calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));
}

.thaw-combobox__input:focus {
    outline-style: none;
}

.thaw-combobox__input::placeholder {
    color: var(--colorNeutralForeground4);
    opacity: 1;
}

.thaw-combobox__clear-icon,
.thaw-combobox__expand-icon {
    display: block;
    margin-left: var(--spacingHorizontalXXS);
    color: var(--colorNeutralStrokeAccessible);
    box-sizing: border-box;
    cursor: pointer;
    font-size: 20px;
}

.thaw-combobox--small .thaw-combobox__clear-icon,
.thaw-combobox--small .thaw-combobox__expand-icon {
    font-size: 16px;
}

.thaw-combobox--large .thaw-combobox__clear-icon,
.thaw-combobox--large .thaw-combobox__expand-icon {
    margin-left: var(--spacingHorizontalSNudge);
    font-size: 24px;
}

.thaw-combobox.thaw-combobox--disabled {
    border-color: var(--colorNeutralStrokeDisabled);
    border-bottom-color: var(--colorNeutralStrokeDisabled);
    background-color: var(--colorTransparentBackground);
    cursor: not-allowed;
}

.thaw-combobox--disabled > .thaw-combobox__input {
    background-color: var(--colorTransparentBackground);
    color: var(--colorNeutralForegroundDisabled);
    cursor: not-allowed;
}

.thaw-combobox--disabled > .thaw-combobox__input::placeholder {
    color: var(--colorNeutralForegroundDisabled);
}

.thaw-combobox--disabled > .thaw-combobox__clear-icon,
.thaw-combobox--disabled > .thaw-combobox__expand-icon {
    cursor: not-allowed;
}

.thaw-combobox-option {
    column-gap: var(--spacingHorizontalXS);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: var(--spacingVerticalSNudge) var(--spacingHorizontalS);
    line-height: var(--lineHeightBase300);
    font-size: var(--fontSizeBase300);
    font-family: var(--fontFamilyBase);
    color: var(--colorNeutralForeground1);
    border-radius: var(--borderRadiusMedium);
}

.thaw-combobox-option[data-activedescendant-focusvisible]::after {
    content: "";
    position: absolute;
    right: -2px;
    left: -2px;
    bottom: -2px;
    top: -2px;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--borderRadiusMedium);
    border: 2px solid var(--colorStrokeFocus2);
}

.thaw-combobox-option:hover {
    color: var(--colorNeutralForeground1Hover);
    background-color: var(--colorNeutralBackground1Hover);
}

.thaw-combobox-option:active {
    color: var(--colorNeutralForeground1Pressed);
    background-color: var(--colorNeutralBackground1Pressed);
}

.thaw-combobox-option__check-icon {
    visibility: hidden;
    margin-left: calc(var(--spacingHorizontalXXS) * -1);
    margin-right: var(--spacingHorizontalXXS);
    font-size: var(--fontSizeBase400);
}

.thaw-combobox-option--selected > .thaw-combobox-option__check-icon {
    visibility: visible;
}

.thaw-combobox__clear-icon > svg,
.thaw-combobox__expand-icon > svg,
.thaw-combobox-option__check-icon--multiselect > svg,
.thaw-combobox-option__check-icon > svg {
    display: block;
    line-height: 0;
}

.thaw-combobox-option__check-icon--multiselect {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    margin-left: calc(var(--spacingHorizontalXXS) * -1);
    margin-right: var(--spacingHorizontalXXS);
    width: 16px;
    height: 16px;
    font-size: 12px;
    border-radius: var(--borderRadiusSmall);
    border: var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);
    box-sizing: border-box;
    fill: currentcolor;
}

.thaw-combobox-option--selected
    > .thaw-combobox-option__check-icon--multiselect {
    border-color: var(--colorCompoundBrandBackground);
    color: var(--colorNeutralForegroundInverted);
    background-color: var(--colorCompoundBrandBackground);
}

.thaw-combobox-option--disabled {
    color: var(--colorNeutralForegroundDisabled);
}

.thaw-combobox-option--disabled:active,
.thaw-combobox-option--disabled:hover {
    background-color: var(--colorTransparentBackground);
    color: var(--colorNeutralForegroundDisabled);
}
